import request from '@/utils/request'

// 查询反倾销海关编码列表
export function listDumping(query) {
    return request({
        url: '/system/dumping/list',
        method: 'get',
        params: query
    })
}

// 查询反倾销海关编码详细
export function getDumping(id) {
    return request({
        url: '/system/dumping/' + id,
        method: 'get'
    })
}

// 新增反倾销海关编码
export function addDumping(data) {
    return request({
        url: '/system/dumping',
        method: 'post',
        data: data
    })
}

// 修改反倾销海关编码
export function updateDumping(data) {
    return request({
        url: '/system/dumping',
        method: 'put',
        data: data
    })
}

// 删除反倾销海关编码
export function delDumping(id) {
    return request({
        url: '/system/dumping/' + id,
        method: 'delete'
    })
}